package com.study.pojo;

import java.util.Date;
import java.util.Objects;

/**
 * @PackgeName: com.study.pojo
 * @ClassName: AthletesInfo
 * @Author: 严志祥
 * Date: 2022-05-04 15:32
 * project name: web_project_medal
 * @Version:
 * @Description:
 */
public class AthletesInfo {
    private Integer athletesId;
    private String countryCode;
    private String athletesName;
    private Date athletesBirthdate;
    private Integer athletesHeight;
    private Double athletesWeight;
    private String athletesImg;
    private String athletesBrief;
    private Integer athletesSex;

    public AthletesInfo() {
    }

    public AthletesInfo(String countryCode, String athletesName, Date athletesBirthdate, Integer athletesHeight, Double athletesWeight, String athletesImg, String athletesBrief, Integer athletesSex) {
        this.countryCode = countryCode;
        this.athletesName = athletesName;
        this.athletesBirthdate = athletesBirthdate;
        this.athletesHeight = athletesHeight;
        this.athletesWeight = athletesWeight;
        this.athletesImg = athletesImg;
        this.athletesBrief = athletesBrief;
        this.athletesSex = athletesSex;
    }

    public AthletesInfo(Integer athletesId, String countryCode, String athletesName, Date athletesBirthdate, Integer athletesHeight, Double athletesWeight, String athletesImg, String athletesBrief, Integer athletesSex) {
        this.athletesId = athletesId;
        this.countryCode = countryCode;
        this.athletesName = athletesName;
        this.athletesBirthdate = athletesBirthdate;
        this.athletesHeight = athletesHeight;
        this.athletesWeight = athletesWeight;
        this.athletesImg = athletesImg;
        this.athletesBrief = athletesBrief;
        this.athletesSex = athletesSex;
    }

    public Integer getAthletesId() {
        return athletesId;
    }

    public void setAthletesId(Integer athletesId) {
        this.athletesId = athletesId;
    }

    public String getCountryCode() {
        return countryCode;
    }

    public void setCountryCode(String countryCode) {
        this.countryCode = countryCode;
    }

    public String getAthletesName() {
        return athletesName;
    }

    public void setAthletesName(String athletesName) {
        this.athletesName = athletesName;
    }

    public Date getAthletesBirthdate() {
        return athletesBirthdate;
    }

    public void setAthletesBirthdate(Date athletesBirthdate) {
        this.athletesBirthdate = athletesBirthdate;
    }

    public Integer getAthletesHeight() {
        return athletesHeight;
    }

    public void setAthletesHeight(Integer athletesHeight) {
        this.athletesHeight = athletesHeight;
    }

    public Double getAthletesWeight() {
        return athletesWeight;
    }

    public void setAthletesWeight(Double athletesWeight) {
        this.athletesWeight = athletesWeight;
    }

    public String getAthletesImg() {
        return athletesImg;
    }

    public void setAthletesImg(String athletesImg) {
        this.athletesImg = athletesImg;
    }

    public String getAthletesBrief() {
        return athletesBrief;
    }

    public void setAthletesBrief(String athletesBrief) {
        this.athletesBrief = athletesBrief;
    }

    public Integer getAthletesSex() {
        return athletesSex;
    }

    public void setAthletesSex(Integer athletesSex) {
        this.athletesSex = athletesSex;
    }

    @Override
    public String toString() {
        return "AthletesInfo{" +
                "athletesId=" + athletesId +
                ", countryCode='" + countryCode + '\'' +
                ", athletesName='" + athletesName + '\'' +
                ", athletesBirthdate=" + athletesBirthdate +
                ", athletesHeight=" + athletesHeight +
                ", athletesWeight=" + athletesWeight +
                ", athletesImg='" + athletesImg + '\'' +
                ", athletesBrief='" + athletesBrief + '\'' +
                ", athletesSex=" + athletesSex +
                '}';
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        AthletesInfo that = (AthletesInfo) o;
        return Objects.equals(athletesId, that.athletesId) && Objects.equals(countryCode, that.countryCode) && Objects.equals(athletesName, that.athletesName) && Objects.equals(athletesBirthdate, that.athletesBirthdate) && Objects.equals(athletesHeight, that.athletesHeight) && Objects.equals(athletesWeight, that.athletesWeight) && Objects.equals(athletesImg, that.athletesImg) && Objects.equals(athletesBrief, that.athletesBrief) && Objects.equals(athletesSex, that.athletesSex);
    }

    @Override
    public int hashCode() {
        return Objects.hash(athletesId, countryCode, athletesName, athletesBirthdate, athletesHeight, athletesWeight, athletesImg, athletesBrief, athletesSex);
    }
}
